package com.hxl.alert.constant;

/**
 * 缓存的key 常量
 *
 * @author heixiaolv
 */
public class CacheConstants {
    /**
     * 越限告警的键前缀
     */
    public static final String YUEXIAN_KEY = "alert:yuexian:";
    /**
     * 故障告警的ZSet键
     */
    public static final String FAULT_KEY = "alert:fault";

    /**
     * 越限告警的ZSet键
     */
    public static final String YUEXIANAREA_KEY = "alert:yuexianarea";

    /**
     * 接收所有消息的key
     * (key:告警id   value:消息实体)
     */
    public static final String RECEIVE_KEY = "alert:receive:";

    /**
     * 接收所有消息告警id的ZSet键
     * (score:告警时间   value:告警id)
     */
    public static final String SCORE_KEY = "alert:score";

    /**
     * 接收消息(OnMessage)分布式锁 key 前缀
     */
    public static final String PROCESS_LOCK = "alert:process:";

    /**
     * 存储失败消息的key
     */
    public static final String FAILED_ALERTS_KEY = "alert:failed";
}
